//
// Created by whg on 2025-06-01.
//

#include "pyList.hpp"

PyList::PyList() {
    _values = new ArrayList<PyObject*>();
}

PyObject* PyList::get(int index) {
    return _values->get(index);
}

void PyList::append(PyObject* o) {
    _values->add(o);
}

void PyList::set(int index, PyObject* o) {
    _values->set(index, o);
}

int PyList::length() {
    return _values->length();
}
